package com.base.service;

import java.util.List;
import com.base.po.voip.TaskReach;
import com.base.utils.Page;

public interface TaskReachService {
	int deleteByPrimaryKey(Integer id);

	int insert(TaskReach record);

	int insertSelective(TaskReach record);

	TaskReach selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(TaskReach record);

	int updateByPrimaryKey(TaskReach record);

	List<TaskReach> selectByAll(String subid, String agentid, String createtime);

	List<TaskReach> selectByTaskReach(String subid, String agentid, String createtime, Integer type);

	TaskReach selectByPresent(String subid, String agentid);

	// 商家的任务信息
	TaskReach countByShopAll(String shopid, String mobile, String username, String shopname, String createtime);

	List<TaskReach> selectByShopAll(Page page, String shopid, String mobile, String username, String shopname,
                                    String createtime);

	// 代理商的任务信息
	TaskReach countByParentAll(String parentid, String mobile, String username, String shopname, String createtime);

	List<TaskReach> selectByParentAll(Page page, String parentid, String mobile, String username, String shopname,
                                      String createtime);
}